package tree;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-18
 * Time:18:48
 */
public class Text {
    public static void main(String[] args) {
    BinaryTree fw=new BinaryTree();
    BinaryTree.Tree kk=new BinaryTree.Tree(100);
    fw.creat(kk);
        System.out.println(fw.getTreeRoot(kk));
        fw.show(kk);
        System.out.println(fw.image(kk));
        System.out.println(fw.levelOrder2(kk));
        System.out.println(fw.isCompeteTree(kk));

        BinaryTree fw1=new BinaryTree();
       int[] kk1={1,2,3,4,5,6};
       int[] kk2={3,2,4,1,6,5};
        BinaryTree.Tree tt=fw1.CreatTree(kk1,kk2);
        System.out.println(fw1.levelOrder2(tt));
    }
}
